<?php

use Illuminate\Database\Seeder;
use App\Contract;

class ContractsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // 获取faker 实例
        $faker = app(Faker\Generator::class);

        $contracts = factory(Contract::class)
                        ->times(20)
                        ->make();

        Contract::insert($contracts->toArray());
    }
}
